<?php
include("connection/connection.php");
$tanker_id=$_REQUEST['var'];
$qrTanker="select * from tbl_dtls_q1_tanker where id='$tanker_id'";
		$resTanker=mysql_query($qrTanker);
		$rowTanker=mysql_fetch_array($resTanker);
?>
<html>
<head>
</head>
<body>
 <div class="section_format">
<script type="text/javascript" src="js/jquery.js"></script>
  <form action="tankerrwss_edit.php" method="post" name="sampleform" id="sampleform">
  <table border="1">
    
    <tr>
      <td colspan="2">&nbsp;<b>Water Supply by Tankers</b>&nbsp;</td>
      </tr>
   
      <td width="400">&nbsp;<b>Tanker Nos.</b></td>
      <td width="400">&nbsp;<input type="text" name="tank_no" id="tank_no" value="<?php echo $rowTanker['total_tanker_no'];?>" onBlur="int(this);" /><input type="hidden" id="tankId" name="tankId" value="<?php echo $tanker_id; ?>"  /></td>
      </tr>
    <tr>
      <td>&nbsp;<b>Total Quantity (KLD)</b></td>
      <td>&nbsp;<input type="text" name="qty" id="qty" value="<?php echo $rowTanker['water_quantity'];?>" onBlur="int(this);" /></td>
      </tr>
	  <tr>
      <td>&nbsp;<b>Area Covered</b></td>
      <td>&nbsp;<input type="text" name="area" id="area" value="<?php echo $rowTanker['area_covered'];?>" /></td>
      </tr>
	  
	    <tr>
        <td >&nbsp;<b>From(Date)</b></td>
        <td >&nbsp;<input type="text" name="secondinput" size=20 value="<?php echo $rowTanker['from_date']; ?>">&nbsp;<a href="javascript:showCal('Calendar2')"><img src="images/caldr.jpg" /></a></td>
      </tr>
      <tr>
        <td >&nbsp;<b>To(Date)</b></td>
        <td >&nbsp;<input type="text" name="firstinput" value="<?php echo $rowTanker['to_date']; ?>" size=20>&nbsp;<a href="javascript:showCal('Calendar1')"><img src="images/caldr.jpg" /></a></td>
      </tr>
     
      <tr>
	    <td colspan="2" align="center"><input type="submit" value="EDIT" name="tanker_info" style="font-size: 8pt; font-family: Verdana; border-style: solid; border-width: 1px; font-weight:bold; background:#666666; color:#FFFFFF; width:140px; height:30px" onClick="view_validate()"></td>
  </tr>
  </table>
  </form>
  </div>
 </body>
 
  